<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>材料打标</title>
<style media="print">
	.menu{display:none;}
	@page {
      size: auto;  /* auto is the initial value */
      margin: 0mm; /* this affects the margin in the printer settings */
</style>
<style>
	.common{ font-size:20px; font-weight:bold; text-align:center;}
	.special-tit{ font-size:20px; font-weight:bold; text-align:center;}
	.special{ font-size:36px; font-weight:bold; text-align:center;height:47px;}
</style>
<body>
<div class="menu">
	<input type="button" value="打 印" onclick="window.print()"/><br><br>
</div>
<div class="pageContent" id="pageContent" style="margin:0px;padding:0px;">
	<?php foreach ($clothNums as $k => $item) {?>
	<div id="tag<?=$k?>" style="position: relative;width:377px;height:377px;<?php if($k==count($clothNums)-1) echo 'height:368px;' ;?><?php if($k>0) echo 'style="page-break-before: always"';?>">
		<table width="100%" border="1" style="border-collapse:collapse;" class="list">
			<tr>
				<td class="common"><img src="<?php echo $item['qrcode'];?>" width="100" height="100"></td>
				<td style="font-size:30px; line-height: 100px;height:100px; text-align:center;"><?php echo config('base.company_short_name');?>采购单</td>
			</tr>
			<tr>
				<td class="common">材料属性</td>
				<td class="common"><?php echo arrayGet($materialType, $materialInfo['type'], '');?><?php if($orderInfo['caichuang_type']==2) echo '/电脑裁床';?></td>
			</tr>
			<tr>
				<td class="common">面料名称</td>
				<td class="common"><?php echo $materialInfo['name'];?></td>
			</tr>
			<tr>
				<td class="common">SKU</td>
				<td class="common"><?php echo $orderInfo['sku'];?></td>
			</tr>
			<tr>
				<td class="common">订单时效</td>
				<td class="common"><?php echo formatSecond(time()-$orderInfo['create_time']);?></td>
			</tr>
			<tr>
				<td class="special-tit">订单编号</td>
                <td class="special" style="font-size:30px"><?php echo $orderInfo['client_ordernum'];?></td>
			</tr>
			<tr>
				<td class="special-tit">布号</td>
				<td class="special"><?php echo $item['cloth_num_full'];?>&nbsp;&nbsp;<?php if(!empty($isFromStock)){ ?> <span>库存</span> <?php }?></td>

			</tr>
			<tr>
				<td class="special-tit">工厂</td>
				<td class="special"><?php echo $factoryKV[$orderInfo['factory_id']];?></td>
			</tr>
		</table>
		<?php if($isRenew){ ?>
		<div style="position: absolute;top:0px;left:50px;font-size:300px;font-weight:bold;filter:alpha(opacity=20);opacity:0.2;">换</div>
		<?php } ?>
	</div>
	<?php }?>
</div>
</body>
</html>